from appengine_django.models import BaseModel
from google.appengine.ext import db


class TwitterUser(BaseModel):

    """Model representing a Twitter user.

    All details are provided by Twitter itself. The only bit of data specific
    to Pithy Comment is the key and that is accessed through the key() method.

    """

    # Twitter-related.
    username = db.StringProperty(required=True)
    picture = db.LinkProperty(required=True)
    # OAuth-related.
    token = db.StringProperty(required=True)
    secret = db.StringProperty(required=True)
